package com.ls.service;

import com.ls.dao.GoodsDao;

import java.util.ArrayList;
import java.util.List;

public class GoodsService {
    private GoodsDao goodsDao=new GoodsDao();
    public boolean add(){
        return goodsDao.add()>0;
    }
    public  boolean del(){
        return goodsDao.delete()>0;
    }
    public  boolean updata(){
        return goodsDao.update()>0;
    }
    public List<Object> select(){
        List<Object> list=new ArrayList<Object>();
        return  goodsDao.query();
    }

}
